package pandora.data;

import java.util.Date;
import java.util.List;

import pandora.dto.ProductDTO;
import pandora.dto.TypeDTO;

public interface IGenericSearchDAO {
	
	//Métodos DCC
	public List<TypeDTO> selectAllSearchedTypesAtStore(String snif);
	public Integer countSearchedTypeAtStore(String snif, TypeDTO t);
	public List<TypeDTO> selectAllSearchedTypesAtStoreBetween(String snif, Date d1, Date d2);
	public Integer countSearchedTypeAtStoreBetween(String snif, TypeDTO t, Date d1, Date d2);
	
	public List<TypeDTO> selectAllSearchedCustomerTypes(String cdni);
	public Integer countSearchedCustomerType(String cdni, TypeDTO t);
	public List<TypeDTO> selectAllSearchedCustomerTypesBetween(String cdni, Date d1, Date d2);
	public Integer countSearchedCustomerTypeBetween(String cdni, TypeDTO t, Date d1, Date d2);
	//Fin Métodos DCC
	
	//AVC
	
	public void saveSearch(ProductDTO product, String user, Date date);

}
